package com.mac.demo.service;

import com.mac.demo.vo.User;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface IUserInfo {
    /**
     * 查询
     * @param vo
     * @return
     */
    public List<User> queryInfo(User vo);

    /**
     * 保存数据
     * @param vo
     */
    @Transactional(propagation = Propagation.REQUIRED)
    public void insertInfo(User vo);
}
